//
//  MyCell.m
//  UI_豆瓣app
//
//  Created by 151129-49宋强 on 15/12/23.
//  Copyright © 2015年 www.lanou3g.com蓝鸥. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
     //   _imgView.backgroundColor = [UIColor yellowColor];
        _imgView.image = [UIImage imageNamed:@"bg_eventlistcell"];
        [self.contentView addSubview:_imgView];
        self.imgView1 = [[UIImageView alloc] init];
     //   _imgView1.backgroundColor = [UIColor blackColor];
        _imgView1.image = [UIImage imageNamed:@"bg_share_large"];
        [self.imgView addSubview:_imgView1];
        
        self.imgView2 = [[UIImageView alloc] init];
        //_imgView2.backgroundColor = [UIColor blackColor];
        [self.imgView1 addSubview:_imgView2];

        self.imgView3 = [[UIImageView alloc] init];
      //  _imgView3.backgroundColor = [UIColor blackColor];
        _imgView3.image = [UIImage imageNamed:@"icon_date"];
        [self.imgView1 addSubview:_imgView3];

        self.imgView4 = [[UIImageView alloc] init];
      //  _imgView4.backgroundColor = [UIColor blackColor];
         _imgView4.image = [UIImage imageNamed:@"icon_spot"];
        [self.imgView1 addSubview:_imgView4];
        
        self.imgView5 = [[UIImageView alloc] init];
     //   _imgView5.backgroundColor = [UIColor blackColor];
         _imgView5.image = [UIImage imageNamed:@"icon_catalog"];
        [self.imgView1 addSubview:_imgView5];

        
        self.Label1 = [[UILabel alloc] init];
     //   _Label1.backgroundColor = [UIColor redColor];
        [self.imgView addSubview:_Label1];
        self.Label1 = [[UILabel alloc] init];
     //   _Label1.backgroundColor = [UIColor redColor];
        [self.imgView addSubview:_Label1];

        self.Label2 = [[UILabel alloc] init];
     //   _Label2.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label2];

        self.Label3 = [[UILabel alloc] init];
     //   _Label3.backgroundColor = [UIColor redColor];
        _Label3.text = @"--";
        [self.imgView1 addSubview:_Label3];

        self.Label4 = [[UILabel alloc] init];
       // _Label4.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label4];

        self.Label5 = [[UILabel alloc] init];
       // _Label5.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label5];

        self.Label6 = [[UILabel alloc] init];
       // _Label6.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label6];
        _Label6.text = @"类型:";

        self.Label7 = [[UILabel alloc] init];
        //_Label7.backgroundColor = [UIColor redColor];
       [self.imgView1 addSubview:_Label7];
        self.Label8 = [[UILabel alloc] init];
       // _Label8.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label8];
        _Label8.text = @"感兴趣:";
        self.Label9 = [[UILabel alloc] init];
        //_Label9.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label9];

        self.Label10 = [[UILabel alloc] init];
       // _Label10.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label10];
        _Label10.text = @"参加:";

        self.Label11 = [[UILabel alloc] init];
       // _Label11.backgroundColor = [UIColor redColor];
        [self.imgView1 addSubview:_Label11];


    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _imgView.frame = self.contentView.frame;
    
    _imgView1.frame = CGRectMake(5, 40, 365, self.contentView.frame.size.height - 50);
    _imgView2.frame = CGRectMake(270, 5, 90, 135);
    
    _imgView3.frame = CGRectMake(10, 10, 30, 30);
    _imgView4.frame = CGRectMake(10, 40, 30, 30);
    _imgView5.frame = CGRectMake(10, 70, 30, 30);
    _Label1.frame = CGRectMake(10, 10, 355, 30);
    _Label2.frame = CGRectMake(40, 10, 100, 30);
    _Label3.frame = CGRectMake(140, 10, 20, 30);
    _Label4.frame = CGRectMake(160, 10, 110, 30);
    _Label5.frame = CGRectMake(40, 40, 220, 30);
    _Label6.frame = CGRectMake(40, 70, 40, 30);
    _Label7.frame = CGRectMake(80, 70, 100, 30);
    _Label8.frame = CGRectMake(10, 120, 60, 20);
    _Label9.frame = CGRectMake(70, 120, 50, 20);
    _Label10.frame = CGRectMake(125, 120, 40, 20);
    _Label11.frame = CGRectMake(165, 120, 50, 20);
    
}













@end
